/*
 * @Descripttion: 为移动端用户 存储与医师的聊天记录
 * @version: 
 * @Author: 
 * @Date: 2022-04-29 15:56:47
 * @LastEditors: weidelong
 * @LastEditTime: 2022-04-29 16:01:04
 */
const mongoose = require("./db")
const conn = mongoose.connection
conn.on("error", () => console.log("连接数据库失败"))

// 模型对象
const DoctorMsgSchema  = mongoose.Schema({
  id: { type: String },
  msg: { type: String }, // 聊天内容
  addTime: { type: String } // 创建时间
});

const doctormsg = mongoose.model("doctormsgs", DoctorMsgSchema )
module.exports = doctormsg